package com.core.dao.mybatismysql;


import com.core.bean.Online;
import com.core.dao.ISingleDao;
import com.core.utils.MybatisUtils;
import org.apache.ibatis.session.SqlSession;

public class SingleDao implements ISingleDao {

    @Override
    public Online queryByToken(String token) throws Exception {
        SqlSession session = MybatisUtils.getSession();
        ISingleDao mapper = session.getMapper(ISingleDao.class);
        return mapper.queryByToken(token);
    }

    @Override
    public int add(Online entity) throws Exception {
        return 0;
    }

    @Override
    public int remove(String id) throws Exception {
        return 0;
    }

    @Override
    public int modify(Online entity) throws Exception {
        return 0;
    }

    @Override
    public Online findEntityById(String id) throws Exception {
        return null;
    }
}
